package com.hiwhitley.himei.contract.model;

import com.hiwhitley.himei.contract.MeituContract;
import com.hiwhitley.himei.entity.Benefit;
import com.hiwhitley.himei.network.RetrofitFactory;
import com.hiwhitley.himei.network.service.GankService;

import rx.Observable;

/**
 * Created by hiwhitley on 2016/9/22.
 */

public class MeituModel implements MeituContract.Model {

    private static final String TAG = "MeituModel";
    private GankService gankService;

    public MeituModel() {
        gankService = RetrofitFactory.getGankService();
    }

    @Override
    public Observable<Benefit> getBenefit(int page) {
        return gankService.getBenefit(page);
    }
}
